// JavaScript Document
function saveMsgPerso(msgPerso){
					
					var actualMsgPerso = "'.$data['membre_msgPerso'].'";
					
					if(msgPerso.value==""){
						
						if(actualMsgPerso!=msgPerso.value){
							var xhr = getXMLHttpRequest();
							xhr.open("POST", "'.DIR_MODULE.'/membre/saveMsgPerso.php", true);
							xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
							var sVar1 = encodeURIComponent("");
							xhr.send("msgPerso="+sVar1);
						}
						msgPerso.value="Aucun message perso, cliquez ici pour en ajouter un !";
						
						
					}else if(actualMsgPerso!=msgPerso.value){
						var saveText = msgPerso.value;
						msgPerso.value="Enregistrement en cours ...";
						
						var xhr = getXMLHttpRequest();
						xhr.open("POST", "'.DIR_MODULE.'/membre/saveMsgPerso.php", true);
						xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
						var sVar1 = encodeURIComponent(saveText);
						xhr.send("msgPerso="+sVar1);
						msgPerso.value = saveText;
								
							
					}else{
						msgPerso.value = "";
					}
				}
				
				function onEventKey(e,target){
					if(e.which==13 || e.keyCode==12){
						saveMsgPerso(target);
						target.blur();
					}
				}